package com.buka.communicate.activity;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.View;
import android.widget.TextView;

import com.buka.communicate.R;
import com.buka.communicate.adapter.SuccessRateAdapter;
import com.jcodecraeer.xrecyclerview.ProgressStyle;

import net.neiquan.applibrary.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/11/16 0016.
 */

public class SuccessRateActivity extends BaseActivity {
    @InjectView(R.id.addTable)
    TextView addTable;
    @InjectView(R.id.goCharge)
    TextView goCharge;
    @InjectView(R.id.rankTable)
    TextView rankTable;
    @InjectView(R.id.toolUser)
    TextView toolUser;
    @InjectView(R.id.mRecylerView)
    RecyclerView mRecylerView;

    @Override
    public int getRootViewId() {
        return R.layout.activity_success_rate;
    }

    @Override
    public void setViews() {
        setTitleTv("品阶成功率的提升");
        initRecylerView();
    }

    private void initRecylerView() {
        StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(1,
                StaggeredGridLayoutManager.VERTICAL);
        layoutManager.setOrientation(StaggeredGridLayoutManager.VERTICAL);
        mRecylerView.setLayoutManager(layoutManager);
        mRecylerView.setAdapter(new SuccessRateAdapter(this,null));
    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.addTable, R.id.goCharge, R.id.rankTable, R.id.toolUser})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.addTable:
                break;
            case R.id.goCharge:
                break;
            case R.id.rankTable:
                break;
            case R.id.toolUser:
                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.inject(this);
    }
}
